
package com.sjzl.util;

import javax.servlet.http.HttpServletRequest;
import org.directwebremoting.WebContextFactory;

import com.sjzl.entity.ProgressInfo;

public class UploadMonitor {
	
	public ProgressInfo getUploadInfo() {
		HttpServletRequest req = WebContextFactory.get()
				.getHttpServletRequest();

		ProgressInfo pi = (ProgressInfo) req.getSession().getAttribute(
				"PROGRESS_INFO");
		if (pi != null)
			return pi;
		else
			return new ProgressInfo();
	}
}
